#pragma once

#include <gofcl_rcu_r.h>

typedef struct {
	u8_s IRC40KEN : 1;
	u8_s IRC40KSTB : 1;
	u8_s : 6;
} rcu_rstsck_0_7_s;

_Static_assert(sizeof(rcu_rstsck_0_7_s) == 1,
	       "Struct rcu_rstsck_0_7_s defined error!");

static inline void rcu_wreg_rstsck_0_7_s(rcu_rstsck_0_7_s rstsck_0_7) {
	union {
		rcu_rstsck_0_7_s r;
		u32_s u;
	} ru = {
		.r = rstsck_0_7,
	};
	rcu_wreg_u8(RCU_RSTSCK_R, T8B_0_R, ru.u);
}

static inline rcu_rstsck_0_7_s rcu_rreg_rstsck_0_7_s(void) {
	union {
		rcu_rstsck_0_7_s r;
		u32_s u;
	} ru = {
		.u = rcu_rreg_u8(RCU_RSTSCK_R, T8B_0_R),
	};
	return ru.r;
}
